package io.noties.markwon.plugin.highlight.model

import org.commonmark.node.CustomNode
import org.commonmark.node.Delimited

/**
 * A Highlight node containing text and other inline nodes nodes as children.
 */
class Highlight : CustomNode(), Delimited {
    override fun getOpeningDelimiter(): String {
        return DELIMITER
    }

    override fun getClosingDelimiter(): String {
        return DELIMITER
    }

    companion object {
        private const val DELIMITER = "=="
    }
}